package _022_2_12

func reverseStr(s string, k int) string {
	result := []byte(s)
	for i := 0; i < k/2; i++ {
		temp := result[i]
		result[i] = result[k-i-1]
		result[k-i] = temp
	}

	return string(result)
}
